"""
API模块

提供RESTful API接口。
"""

from fastapi import APIRouter
from .agents import router as agents_router
from .workflows import router as workflows_router
from .data import router as data_router
from .coordination import router as coordination_router

# 创建主路由器
api_router = APIRouter()

# 注册子路由
api_router.include_router(agents_router, prefix="/agents", tags=["智能体"])
api_router.include_router(workflows_router, prefix="/workflows", tags=["工作流"])
api_router.include_router(data_router, prefix="/data", tags=["数据"])
api_router.include_router(coordination_router, prefix="/coordination", tags=["协调"])

__all__ = ["api_router"]